package net.kingborn.erp.bc.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import net.kingborn.erp.bc.dao.SellProductDao;
import net.kingborn.erp.bc.model.SellProduct;
import net.kingborn.erp.bc.model.SellProduct;
import net.kingborn.erp.bc.service.SellProductService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SellProductServiceImpl extends ServiceImpl<SellProductDao, SellProduct> implements SellProductService {

    @Override
    public List<SellProduct> findListBySell(String sellId) {
        return this.list(new QueryWrapper<SellProduct>().eq("sellId", sellId));
    }

    @Override
    public void deleteBySell(String sellId) {
        this.remove(new QueryWrapper<SellProduct>().eq("sellId", sellId));
    }
    
}
